package com.wooming.studentinfosystem.exception;

import lombok.Getter;

/**
 * 业务异常
 *
 * @author wooming
 */
@Getter
public class ServiceException extends RuntimeException {
    private  final int code;

    public ServiceException(int code, String message) {
        super(message);
        this.code = code;
    }

    public ServiceException(String message) {
        this(400, message);
    }
}
